package com.itheima.test;

import java.io.*;

/*
字符缓冲流
 */
public class Demo6 {
    public static void main(String[] args) throws IOException {

        //缓冲流读取数据,必须要new 字符流的对象
        BufferedReader br = new BufferedReader(new FileReader("day13_字符流\\b.txt"));
        //定义一个字符串用来接收读取的文字
        String line;
        while((line = br.readLine()) != null){
            System.out.println(line);
        }
        //关闭资源
        br.close();


    }
}
